-- GENERATED SPELL FOR [Westfall Brigade Marine] --


function spell0_27501(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(52719,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27501', 3334, 1)
end

function spell1_27501(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27501', 15280, 1)
end

function Sorts_27501(pUnit, Event)
local choix_sorts_27501 = math.random(0, 1)
if choix_sorts_27501 == 0 then
pUnit:RegisterEvent('spell0_27501', 1, 1)
end
if choix_sorts_27501 == 1 then
pUnit:RegisterEvent('spell1_27501', 1, 1)
end
end

function mob27501_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27501', math.random(1500, 3000), 1)
end

function mob27501_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27501_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27501_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27501, 1, 'mob27501_Action')
RegisterUnitEvent(27501, 2, 'mob27501_Leave')
RegisterUnitEvent(27501, 3, 'mob27501_Kill')
RegisterUnitEvent(27501, 4, 'mob27501_Die')
